export default {
	data(){
		return{
			loginForm:{}
		}
	},
	methods: {
		//未登录验证
		loginValidate(show){
			// if(this.loginForm.hasOwnProperty('uid')) return Promise.resolve();
			let showCancel = show == undefined?false:true
			uni.showModal({
				content:'登录后才能操作哦',
				confirmText:"去登录",
				title:'温馨提示',
				showCancel,
				success:({confirm})=>{
					if(confirm){
						this.$u.route({
							url:"/pages/login/login"
						})
					}
				}
			})
			return Promise.reject() 
		},
		callback(){
			this.$u.route({type:'back'})
		}
	}
}
